===========================================================================
Data and codes to replicate the results discussed in online appendix F.5 of 
"Marital matching, economies of scale and intrahousehold allocations" 
by Laurens Cherchye, Bram De Rock, Khushboo Surana and Frederic Vermeulen 
===========================================================================

* Step 1: Sample selection
* The selected sample containing information of single males and single females can be obtained using the do-file 'code cleaning_singles'. 
* It takes as input the raw 2013 PSID data ('2013raw') and the cleaned couples' data (psid_cleaned_onlycouples) and outputs the data set containing information of both couples and  singles ('psid_cleaned_withsingles'). We take this dataset to the second step (identification)


* Step 2: Identification
* We identify the economies of scale and individual RICEBs under two assumptions (same and different consumption technology). The codes for both assumptions are provided in separate sub-folders.
* In both cases, identification can be obtained by using matlab code 'main.m' which uses the dataset 'psid_cleaned_withsingles'
* This script uses two matlab function.
* 1)'get_divorce_costs.m' which computes the minimum divorce costs needed to rationalize the data. 
* 2)'get_scale.m' uses the outputs of 'get_divorce_costs.m' and gives the bounds on economies of scale and individual RICEBS. 
* The results are stored in 'psid_results_f5_withsingles_same' and 'psid_results_f5_withsingles_different'


* Step 3: Analysis
* Tables 37-38 can be reproduced using the do-file 'analysis_results_f5_withsingles'. 
* It uses the stata dataset file 'psid_results_f5_withsingles' which has the results from step 2. 